package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.AttachmentUserMapper;
import com.qj.yantaishan.domain.AttachmentUser;
import com.qj.yantaishan.service.IAttachmentUserService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 会员附件Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class AttachmentUserServiceImpl    extends ServiceImpl<AttachmentUserMapper, AttachmentUser>  implements IAttachmentUserService
{
    @Autowired
    private AttachmentUserMapper attachmentUserMapper;

    /**
     * 查询会员附件
     * 
     * @param pigcmsId 会员附件主键
     * @return 会员附件
     */
    @Override
    public AttachmentUser selectAttachmentUserByPigcmsId(Long pigcmsId)
    {
        return attachmentUserMapper.selectAttachmentUserByPigcmsId(pigcmsId);
    }

    /**
     * 查询会员附件列表
     * 
     * @param attachmentUser 会员附件
     * @return 会员附件
     */
    @Override
    public List<AttachmentUser> selectAttachmentUserList(AttachmentUser attachmentUser)
    {
        return attachmentUserMapper.selectAttachmentUserList(attachmentUser);
    }

    /**
     * 新增会员附件
     * 
     * @param attachmentUser 会员附件
     * @return 结果
     */
    @Override
    public int insertAttachmentUser(AttachmentUser attachmentUser)
    {
        return attachmentUserMapper.insertAttachmentUser(attachmentUser);
    }

    /**
     * 修改会员附件
     * 
     * @param attachmentUser 会员附件
     * @return 结果
     */
    @Override
    public int updateAttachmentUser(AttachmentUser attachmentUser)
    {
        return attachmentUserMapper.updateAttachmentUser(attachmentUser);
    }

    /**
     * 批量删除会员附件
     * 
     * @param pigcmsIds 需要删除的会员附件主键
     * @return 结果
     */
    @Override
    public int deleteAttachmentUserByPigcmsIds(String pigcmsIds)
    {
        return attachmentUserMapper.deleteAttachmentUserByPigcmsIds(Convert.toStrArray(pigcmsIds));
    }

    /**
     * 删除会员附件信息
     * 
     * @param pigcmsId 会员附件主键
     * @return 结果
     */
    @Override
    public int deleteAttachmentUserByPigcmsId(Long pigcmsId)
    {
        return attachmentUserMapper.deleteAttachmentUserByPigcmsId(pigcmsId);
    }
}
